package com.macaline.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.macaline.entity.Permission;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
	
	@Select("select * from permission where id = #{id}")
	public Permission queryById(Integer id);

	@Select("SELECT * from permission")
	public List<Permission> getAllPermissionList();

}
